//
//  SettingCell.m
//  GameBoss
//
//  Created by dllo on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "SettingCell.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation SettingCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.firstImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.firstImage];
        self.secLabel = [[UILabel alloc] init];
        
        [self.contentView addSubview:self.secLabel];
        self.secImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.secImage];
        
        self.cacheLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.cacheLabel];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.secLabel.frame = CGRectMake(WIDTH*0.2, 0, WIDTH*0.8, Screen.height*0.08);
    self.secImage.frame = CGRectMake(5, 5, WIDTH*0.13 , (Screen.height-15)*0.08);
    
    self.cacheLabel.frame = CGRectMake(WIDTH*0.6, 0, WIDTH * 0.2, Screen.height*0.08);
}

#pragma mark 选取白黑两种模式
- (void)setNightDayModel {
    [NightManager setViewColorWithView:self.contentView];
    [NightManager setLabelColorWithLabel: self.firstLabel];
    [NightManager setLabelColorWithLabel: self.secLabel];
}

- (void)setLightDayModel {
    [NightManager setViewColorWithView:self.contentView];
    [NightManager setLabelColorWithLabel: self.firstLabel];
    [NightManager setLabelColorWithLabel: self.secLabel];
}

-(void)dealloc{
    [_firstLabel release];
    [_secLabel release];
    [_thirdLabel release];
    [_forthLabel release];
    [_fivLabel release];
    [_firstImage release];
    [_secImage release];
    [_thirdImage release];
    [_forthImage release];
    [_fivImage release];
    [super dealloc];
}

@end
